package com.awol2010ex.springboot.demo.web.controllers.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@Controller
@RequestMapping(value = "/common/health")
public class HealthController {

    @RequestMapping(value = "/")
    public @ResponseBody  String health(){
        log.info("health ok");
        return "ok";
    }
}
